package com.hp.bon.sgw.wh.mml.common;

public class MMLSessionIdUtils {

	public static int sessionId = 0;
	
	public static Object object = new Object();
	
	public static int genSessionId(){
		synchronized ( object ) {
			if(sessionId>=Integer.MAX_VALUE || sessionId < 0 ){
				sessionId = 0;
			}
			sessionId++;
			return sessionId;
		}
	}
}
